package com.blb.service.admin;

import com.blb.pojo.Carousel;
import com.blb.pojo.Page;

public interface ICarouselService {

    /**
     * 轮播图分页
     * @param page
     * @param size
     * @return
     */
    Page<Carousel> page(int page, int size) throws Exception;

    /**
     * 轮播图添加
     * @param carousel
     */
    void add(Carousel carousel) throws Exception;

    /**
     * 根据id删除
     * @param id
     */
    void deleteById(int id) throws Exception;

    /**
     * 批量删除
     * @param ids
     */
    void batchDelete(String[] ids) throws Exception;

    /**
     * 更具id获取用户数据
     * @param id
     * @return
     */
    Carousel getById(int id) throws Exception;

    /**
     * 轮播图修改
     * @param carousel
     */
    void update(Carousel carousel) throws Exception;
}
